package com.giaothong;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;


public class TabTracNghiemActivity extends Activity implements OnClickListener{
	Button btnXeMoto, btnXeOto, btnXeKhach, btnXetai;
	private Context context;
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_tab_tracnghiem);
		context = this.getApplicationContext();
		
		unit();
	}
	private void unit(){
		btnXeMoto = (Button) findViewById(R.id.home_trac_nghiem_btn_moto);
		btnXeOto = (Button)findViewById(R.id.home_trac_nghiem_btn_hang_b1);
		btnXeKhach = (Button)findViewById(R.id.home_trac_nghiem_btn_hang_b2);
		btnXetai = (Button)findViewById(R.id.home_trac_nghiem_btn_hang_e);
	
		btnXeMoto.setOnClickListener(this);
		btnXeOto.setOnClickListener(this);
		btnXeKhach.setOnClickListener(this);
		btnXetai.setOnClickListener(this);
	}
	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch(v.getId()){
		case R.id.home_trac_nghiem_btn_moto:{
			Intent intent = new Intent(TabTracNghiemActivity.this, TopicCoverActivity.class);
			intent.putExtra("topic_id", 1);
			intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
			this.startActivity(intent);
			this.finish();
			break;
		}
		case R.id.home_trac_nghiem_btn_hang_b1:
			break;
		case R.id.home_trac_nghiem_btn_hang_b2:
			break;
		case R.id.home_trac_nghiem_btn_hang_e:
			break;
		}
	}
}
